package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * pos信息
 * </p>
 *
 * @author stylefeng123
 * @since 2018-05-30
 */
public class Pos extends Model<Pos> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("tenant_id")
    private Long tenantId;
    /**
     * 所属门店，默认为0，代表总部
     */
    @TableField("branch_id")
    private Long branchId;
    /**
     * 设备码
     */
    @TableField("device_code")
    private String deviceCode;
    /**
     * pos机编码
     */
    @TableField("pos_code")
    private String posCode;
    /**
     * 门店编码
     */
    @TableField("branch_code")
    private String branchCode;
    /**
     * pos密码
     */
    private String password;
    /**
     * 0停用
1启用
     */
    private Integer status;
    /**
     * 备注
     */
    private String memo;
    @TableField("create_at")
    private Date createAt;
    @TableField("create_by")
    private String createBy;
    @TableField("last_update_at")
    private Date lastUpdateAt;
    @TableField("last_update_by")
    private String lastUpdateBy;
    @TableField("is_deleted")
    private Integer isDeleted;
    /**
     * 冗余字段：门店名称
     */
    @TableField("branch_name")
    private String branchName;
    /**
     * 同步使用
     */
    @TableField("access_token")
    private String accessToken;
    @TableField("tenant_code")
    private String tenantCode;
    /**
     * app名称
     */
    @TableField("app_name")
    private String appName;
    /**
     * app版本
     */
    @TableField("app_version")
    private String appVersion;
    private Long version;
    @TableField("local_id")
    private Long localId;
    /**
     * 自动拉取日志0-否1-是
     */
    @TableField("is_pull_log")
    private Integer isPullLog;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Long getBranchId() {
        return branchId;
    }

    public void setBranchId(Long branchId) {
        this.branchId = branchId;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getPosCode() {
        return posCode;
    }

    public void setPosCode(String posCode) {
        this.posCode = posCode;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getLastUpdateAt() {
        return lastUpdateAt;
    }

    public void setLastUpdateAt(Date lastUpdateAt) {
        this.lastUpdateAt = lastUpdateAt;
    }

    public String getLastUpdateBy() {
        return lastUpdateBy;
    }

    public void setLastUpdateBy(String lastUpdateBy) {
        this.lastUpdateBy = lastUpdateBy;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Long getLocalId() {
        return localId;
    }

    public void setLocalId(Long localId) {
        this.localId = localId;
    }

    public Integer getIsPullLog() {
        return isPullLog;
    }

    public void setIsPullLog(Integer isPullLog) {
        this.isPullLog = isPullLog;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Pos{" +
        "id=" + id +
        ", tenantId=" + tenantId +
        ", branchId=" + branchId +
        ", deviceCode=" + deviceCode +
        ", posCode=" + posCode +
        ", branchCode=" + branchCode +
        ", password=" + password +
        ", status=" + status +
        ", memo=" + memo +
        ", createAt=" + createAt +
        ", createBy=" + createBy +
        ", lastUpdateAt=" + lastUpdateAt +
        ", lastUpdateBy=" + lastUpdateBy +
        ", isDeleted=" + isDeleted +
        ", branchName=" + branchName +
        ", accessToken=" + accessToken +
        ", tenantCode=" + tenantCode +
        ", appName=" + appName +
        ", appVersion=" + appVersion +
        ", version=" + version +
        ", localId=" + localId +
        ", isPullLog=" + isPullLog +
        "}";
    }
}
